/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.viewer.entity;

import java.io.Serializable;
import java.util.Date;

import cn.mcsys.myadmin.modules.air.entity.AirRidePoint;
import org.hibernate.validator.constraints.Length;

/**
 * 二维码Entity
 * @author leopold
 * @version 2018-09-11
 */
public class AirRideQrCode implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private Long id;
	private Date rideDate;		// 乘车日期
	private Integer rideType;		// 乘车时间段类型
	private Integer rideNo;		// 乘车人数
	private Integer rideStatus;		// 二维码状态(-1:未过期,0:已使用=已使用)
	private AirRidePoint airRidePoint;		// 选择的乘车点
	private String machineNumber;		// 扫码机器编码
	private String pictureUrl;		// 生成的二维码图片地址
	private String orderNumber;		// 订单号和id一样是唯一的(乘车点id+二维码id)
	private String phone;		// 电话号
	private AirViewerUser user;		// 用户ID
	private Date createDate;	//生成日期
	private int delFlag;		//删除标记
	private String note;		// 备注
	
	public AirRideQrCode() {
		super();
	}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getRideDate() {
		return rideDate;
	}

	public void setRideDate(Date rideDate) {
		this.rideDate = rideDate;
	}

	public Integer getRideType() {
		return rideType;
	}

	public void setRideType(Integer rideType) {
		this.rideType = rideType;
	}

	public Integer getRideNo() {
		return rideNo;
	}

	public void setRideNo(Integer rideNo) {
		this.rideNo = rideNo;
	}
	
	public Integer getRideStatus() {
		return rideStatus;
	}

	public void setRideStatus(Integer rideStatus) {
		this.rideStatus = rideStatus;
	}

	public AirRidePoint getAirRidePoint() {
		return airRidePoint;
	}

	public void setAirRidePoint(AirRidePoint airRidePoint) {
		this.airRidePoint = airRidePoint;
	}

	@Length(min=0, max=255, message="扫码机器编码长度必须介于 0 和 255 之间")
	public String getMachineNumber() {
		return machineNumber;
	}

	public void setMachineNumber(String machineNumber) {
		this.machineNumber = machineNumber;
	}
	
	@Length(min=0, max=255, message="生成的二维码图片地址长度必须介于 0 和 255 之间")
	public String getPictureUrl() {
		return pictureUrl;
	}

	public void setPictureUrl(String pictureUrl) {
		this.pictureUrl = pictureUrl;
	}
	
	@Length(min=0, max=64, message="订单号和id一样是唯一的(乘车点id+二维码id)长度必须介于 0 和 64 之间")
	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	
	@Length(min=0, max=64, message="电话号长度必须介于 0 和 64 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public AirViewerUser getUser() {
		return user;
	}

	public void setUser(AirViewerUser user) {
		this.user = user;
	}

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(int delFlag) {
        this.delFlag = delFlag;
    }

    @Length(min=0, max=255, message="备注长度必须介于 0 和 255 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
}